package com.easylinkin.linkappapi.grid.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easylinkin.linkappapi.grid.entity.GridReportDayDetail;
import com.easylinkin.linkappapi.grid.models.query.GridReportDayDetailQuery;
import com.easylinkin.linkappapi.grid.models.query.GridReportDayDetailWeekQuery;
import com.easylinkin.linkappapi.grid.models.vo.GridReportDayDetailInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 网格日报填写详情 Mapper 接口
 *
 * @author kuyujie
 * @since 2024-05-21
 */
public interface GridReportDayDetailMapper extends BaseMapper<GridReportDayDetail> {

    /**
     * 查询日报详情list
     *
     * @param query
     * @return List<GridReportDayDetailInfoVO>
     * @author kyj
     * @date 2024/5/21 16:40
     */
    List<GridReportDayDetailInfoVO> selectListByQuery(@Param("query") GridReportDayDetailQuery query);

    /**
     * 查询周报下的全部日报
     *
     * @param query
     * @return List<GridReportDayDetailInfoVO>
     * @author kyj
     * @date 2024/5/22 14:15
     */
    List<GridReportDayDetailInfoVO> selectListByWeekQuery(@Param("query") GridReportDayDetailWeekQuery query);
}